package tech.wetech.admin3.sys.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import tech.wetech.admin3.sys.model.Message;

import java.util.List;

public interface MsgCenterRepository extends JpaRepository<Message, Integer> {
  List<Message> findByEmail(String email);

  List<Message> findByEmailAndIsRead(String recipient, boolean b);

  List<Message> findByEmailAndContentContainingIgnoreCase(String email,String digitalName);

}
